<template>
  <div class="material-auth">
    <div class="list">
      <div class="item" v-for="(item, index) in 20" :key="index">
        <img src="@/assets/image/platform-avatar.png" alt="" class="avatar"/>
        <div class="item-center">
          <span class="name">成员账号名称</span>
          <span class="auth">全部授权</span>
        </div>
        <span class="change-btn" @click="changeAuth">修改授权</span>
      </div>
    </div>
  </div>
</template>

<script>
import { listMembers } from '@/api/account'
export default {
  mounted () {
    this.getAccountList()
    document.title = '素材包授权'
  },
  methods: {
    getAccountList () {
      listMembers().then(res => {
        console.log('查看素有成员：', res)
      })
    },
    changeAuth () {
      this.$router.push({
        path: '/changeMaterialAuth',
      })
    }
  }
}
</script>

<style scoped>
.material-auth {
  padding-top: 5.33vw;
}
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 89.6vw;
  height: 19.2vw;
  box-sizing: border-box;
  margin: 0 auto 3.2vw;
  background: #ffffff;
  border-radius: 2.13vw;
  padding: 0 2.67vw 0 3.2vw;
}
.item-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 3.2vw;
}
.avatar {
  width: 12.27vw;
  height: 12.27vw;
  border-radius: 50%;
  margin-right: 2.13vw;
}
.name {
  margin-bottom: 1.07vw;
  font-family: Source Sans Pro;
  font-size: 3.73vw;
  font-weight: bold;
  line-height: 5.87vw;
  color: #3D3D3D;
}
.auth {
  font-family: Source Sans Pro;
  font-size: 3.2vw;
  font-weight: 600;
  line-height: 5.87vw;
  color: #00A6A7;
}
.change-btn {
  font-family: Source Sans Pro;
  font-size: 3.73vw;
  font-weight: 600;
  color: #0A67FF;
}
.gray {
  color: #999999;
}
</style>